import { IStateMachine } from "../../Interfaces/IStateMachine";
import { StateMachineManager } from "./StateMachineManager";

/**
 * 状态机基类
 */
export class StateMachine implements IStateMachine {
  owner: any;
  constructor(owner: any) {
    this.owner = owner;
  }
  onEnter(obj?: any) {}
  onLeave(newState: number) {}
  onUpdate() {}
  getStateKey(): number {
    return StateMachineManager.InvalidState;
  }
}
